package dz.chuxin.app.sample.douban;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by chuxin on 2016/8/29.
 */
public class MovieModel {
    private long id;
    @SerializedName("genres")
    private List<String> genresList;
    private String title;
    @SerializedName("collect_count")
    private String collectCount;
    @SerializedName("original_title")
    private String originalTitle;
    private String subtype;
    private String year;
    private Avatars images;
    private List<Cast> casts;
    private List<Cast> directors;

    public void setCasts(List<Cast> casts) {
        this.casts = casts;
    }

    public void setDirectors(List<Cast> directors) {
        this.directors = directors;
    }

    public List<Cast> getCasts() {
        return casts;
    }

    public List<Cast> getDirectors() {
        return directors;
    }

    public void setImages(Avatars images) {
        this.images = images;
    }

    public Avatars getImages() {
        return images;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setGenresList(List<String> genresList) {
        this.genresList = genresList;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setCollectCount(String collectCount) {
        this.collectCount = collectCount;
    }

    public void setOriginalTitle(String originalTitle) {
        this.originalTitle = originalTitle;
    }

    public void setSubtype(String subtype) {
        this.subtype = subtype;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public long getId() {
        return id;
    }

    public List<String> getGenresList() {
        return genresList;
    }

    public String getTitle() {
        return title;
    }

    public String getCollectCount() {
        return collectCount;
    }

    public String getOriginalTitle() {
        return originalTitle;
    }

    public String getSubtype() {
        return subtype;
    }

    public String getYear() {
        return year;
    }

    class Avatars {
        private String small;
        private String medium;
        private String large;

        public String getSmall() {
            return small;
        }

        public void setSmall(String small) {
            this.small = small;
        }

        public String getMedium() {
            return medium;
        }

        public void setMedium(String medium) {
            this.medium = medium;
        }

        public String getLarge() {
            return large;
        }

        public void setLarge(String large) {
            this.large = large;
        }
    }

    class Cast {
        private String id;
        private String name;
        private String alt;
        private Avatars avatars;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAlt() {
            return alt;
        }

        public void setAlt(String alt) {
            this.alt = alt;
        }

        public Avatars getAvatars() {
            return avatars;
        }

        public void setAvatars(Avatars avatars) {
            this.avatars = avatars;
        }

        @Override
        public String toString() {
            return "cast.id=" + id + " cast.name=" + name + " | ";
        }
    }
}
